<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>pdd_jd_menulist_frm</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <style>
        .aui-card-list {
            margin-bottom: 0;
        }

        .aui-content img {
            width: 70% !important;
            border: 1px solid #FFF0F5;
            border-radius: 50%;
            background-color: #FFF0F5;
            text-align: center;
            margin: 0 auto;
        }

        .aui-label {
            display: block !important;
            position: relative;
            color: #fff;
            font-size: 16px;
            line-height: 18px;
            width: 100px;
        }

        .aui-content .au-row {
            background-color: rgba(0, 0, 0, 0.0) !important;
        }

        .makeprofit.wxlogin .tb {
            position: absolute;
            position: fixed;
            top: 18%;
            right: 0px;
            padding: 0.3rem 0.5rem;
            border-radius: 2.5rem 0 0 2.5rem;
            background: -webkit-linear-gradient(left, #ff8800, #ff5000);
        }

        .makeprofit.wxlogin .jd {
            position: absolute;
            position: fixed;
            top: 30%;
            right: 0px;
            padding: 0.3rem 0.5rem;
            border-radius: 2.5rem 0 0 2.5rem;
            background: -webkit-linear-gradient(left, #5f41f8, #ae63fb);
        }

        .makeprofit.wxlogin .pdd {
            position: absolute;
            position: fixed;
            top: 40%;
            right: 0px;
            padding: 0.3rem 0.5rem;
            border-radius: 2.5rem 0 0 2.5rem;
            background: -webkit-linear-gradient(left, #FA5182, #FA895C);
        }

        .bindtext {
            color: #fff;
            font-size: 0.875rem;
        }
    </style>
</head>

<body>
    <section id="diycontent"></section>
    <section class="aui-content aui-padded-l-5 aui-padded-r-10 aui-padded-t-5">
        <div class="aui-row aui-row-padded" id="catelist">


        </div>
    </section>
    <div class="loading_main">
        <img src="../image/loading_main.gif" />
        <span>加载中,请稍后...</span>
    </div>
    <script id="catelisttmpl" type="text/x-dot-template">
        {{? it.length>0}} {{for (var i=0; i
        <it.length; i++) {}} {{? it[i].parent_id==pageParam.cid}} <div class="aui-padded-5 aui-text-center aui-clearfix">
            <h4 class="aui-bg-tag-quan aui-label aui-margin-0">{{=it[i].cname}}</h4></div>
            <div class="aui-col-xs-4" tapmode onclick="openkeywords_win('{{=it[i].cname}}','{{=it[i].cid}}',2)">
                <div class="aui-card-list">
                    <div class="aui-card-list-content aui-margin-0 ">
                        <img onload="imageCache(this,{src:'data-echo'})" src="../image/icon_{{=pageParam.source_type}}.png" data-echo="{{=it[i].cnameicon}}" class="icon" onerror="this.src='../image/icon_{{=pageParam.source_type}}.png'">
                        <h5 class="aui-font-size-14 aui-margin-0 aui-text-center aui-ellipsis-1 ">{{=it[i].cname}}</h5>
                    </div>
                </div>
            </div>
            {{for (var j=0;j
            <it.length;j++) {}} {{? it[j].parent_id==it[i].cid}} <div class="aui-col-xs-4" tapmode onclick="openkeywords_win('{{=it[j].cname}}','{{=it[j].cid}}')">
                <div class="aui-card-list">
                    <div class="aui-card-list-content aui-margin-0 ">
                        <img onload="imageCache(this,'data-echo')" src="../image/icon_{{=pageParam.source_type}}.png" data-echo="{{=it[j].cnameicon}}" class="icon" onerror="this.src='../image/icon_{{=pageParam.source_type}}.png'">
                        <h5 class="aui-font-size-14 aui-margin-0 aui-text-center aui-ellipsis-1 ">{{=it[j].cname}}</h5>
                    </div>
                </div>
                </div>
                {{?}} {{ } }} {{?}} {{ } }} {{?}}
    </script>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/doT.min.js"></script>
<script type="text/javascript" src="../script/zepto.min.js"></script>
<script type="text/javascript" src="../script/echo.min.js"></script>
<script type="text/javascript" src="../script/jdpddmenu.js"></script>
<script type="text/javascript">
    $(".loading_main").show();
    var pageParam;
    var appSetInfo = $api.getStorage('appSetInfo');
    apiready = function() {
        echo.init({
            offset: 0, // 指定距离视窗上下左右位置图片预加载 Number|String Default: 0
            throttle: 10, // 延迟加载  Number|String	Default: 250
            unload: true,
        });
        $(document).ready(function() {
            $(".loading_main").hide();
        });
        pageParam = api.pageParam;
        if (pageParam.data) {
            pageParam = pageParam.data;
        }
        api.parseTapmode();
        var menulist = appSetInfo.indexshowtype == 'tb' ? TB_MENU : appSetInfo.indexshowtype == 'jd' ? JD_MENU : PDD_MENU;
        setDotTmpl("catelisttmpl", "catelist", menulist);
        echo.render();
    };

    function openkeywords_win(name, cid, level) {
        if (level == 2) {
            openWinto('ppjdwin' + cid, 'pdd_jd_head', {
                name: name,
                source_type: pageParam.source_type,
                parent_id: cid,
                level: 2
            }); //打开
        }
        openWinto('pdd_jd_win', 'coupon_head', {
            source_type: pageParam.source_type,
            cid: cid,
            name: name,
            level: 3,
            url: 'widget://html/index_frames.html'
        });
    }
</script>

</html>
